<template>
    <view class="container">
        <image mode="widthFix" src="/static/svg/weep.svg" />
        <view>
            <text>{{ go }} 页面找不到了~</text>
        </view>
        <button @click="backHome">返回首页</button>
    </view>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';

const go = ref<string>('');
// const router = useRouter();
const redirect = ref<string>('');

onLoad((query) => {
    go.value = query?.go || '';
    redirect.value = query?.redirect || '';
});

const backHome = () => {
    // router.pushTab(redirect.value);
    console.log('触发返回==');
};
</script>

<style lang="scss" scoped>
.container {
    padding: 40rpx;
}
</style>
